//
//  dummyData
//
//  Created by Codyo on 2008-08-03.
//  Copyright (c) 2008 Codyo. All rights reserved.
//
import com.codyo.data.ProblemSet;

class com.codyo.data.dummyData {
	
	private var verb_array:Array = new Array();
	private var noun_array:Array = new Array();
	private var distractor_array:Array = new Array();
	
	function dummyData(){
		init();
	}
	
	private function init():Void{
	//	new ProblemSet();
		makeVerbs();
		makeNouns();
		pushDataToProblemset();
	}
	
	private function makeVerbs():Void{
		verb_array[0] = "eat";
		verb_array[1] = "fly";
		verb_array[2] = "peel";
		verb_array[3] = "bounce";
		verb_array[4] = "pet";
		verb_array[5] = "eat";
		verb_array[6] = "walk";
		verb_array[7] = "ride";
		verb_array[8] = "feed";
		verb_array[9] = "pick";	
	}
	
	private function makeNouns():Void{
		noun_array[0] = "apple";
		noun_array[1] = "airplane";
		noun_array[2] = "banana";
		noun_array[3] = "ball";
		noun_array[4] = "cat";
		noun_array[5] = "cupcake";
		noun_array[6] = "dog";
		noun_array[7] = "elephant";
		noun_array[8] = "fish";
		noun_array[9] = "flowers";
	}
	
	private function makeDistractors():Void{
		distractor_array[0] = "anchor";
		distractor_array[1] = "acorn";
		distractor_array[2] = "boomerang";
		distractor_array[3] = "bandana";
		distractor_array[4] = "clock";
		distractor_array[5] = "cane";
		distractor_array[6] = "donut";
		distractor_array[7] = "egg";
		distractor_array[8] = "fan";
		distractor_array[9] = "finger";
	}
	
	function pushDataToProblemset():Void{
		for(var i:Number = 0; i<verb_array.length; i++){
			ProblemSet.addData(verb_array[i], noun_array[i]);
			ProblemSet.addDistractor(distractor_array[i])
		}
		
	}
}